package com.atguigu.springbootkafka.controller;

import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.stereotype.Component;

@Component
public class KafkaConsumer {
    @KafkaListener(topics = "first",groupId="ccc")
    public void consumerTopic(String msg){
        System.out.println(msg);
    }
}
